import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function getTenantId() {
  return Cookies.get("tenantId")
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function setTenant(tenantId) {
  return Cookies.set("tenantId", tenantId)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setHomePage(homePage) {
  return Cookies.set("homePage", homePage)
}
export function getHomePage() {
  return Cookies.get("homePage")
}
